package com.gloryjie.hello.service;


import com.gloryjie.hello.dao.UserDao;
import com.gloryjie.hello.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2018/7/19.
 *
 * @author Jie
 */
@Service
public class HelloServiceImpl implements HelloService{

    @Autowired
    private UserDao userDao;

    @Override
    public String sayHello(String name) {
        userDao.insert(new User(name));
        return "hello, " + name + ", return from provider";
    }
}
